/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author wyr
 */
@Embeddable
public class NewsClientsoftupdaterulePK implements Serializable {
    @Basic(optional = false)
    @Column(name = "clientua")
    private String clientua;
    @Basic(optional = false)
    @Column(name = "clientchannel")
    private String clientchannel;
    @Basic(optional = false)
    @Column(name = "clientsn")
    private String clientsn;

    public NewsClientsoftupdaterulePK() {
    }

    public NewsClientsoftupdaterulePK(String clientua, String clientchannel) {
        this.clientua = clientua;
        this.clientchannel = clientchannel;
    }

    public String getClientua() {
        return clientua;
    }

    public void setClientua(String clientua) {
        this.clientua = clientua;
    }

    public String getClientchannel() {
        return clientchannel;
    }

    public void setClientchannel(String clientchannel) {
        this.clientchannel = clientchannel;
    }
    
    public String getClientsn() {
        return clientsn;
    }

    public void setClientsn(String clientsn) {
        this.clientsn = clientsn;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (clientua != null ? clientua.hashCode() : 0);
        hash += (clientchannel != null ? clientchannel.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof NewsClientsoftupdaterulePK)) {
            return false;
        }
        NewsClientsoftupdaterulePK other = (NewsClientsoftupdaterulePK) object;
        if ((this.clientua == null && other.clientua != null) || (this.clientua != null && !this.clientua.equals(other.clientua))) {
            return false;
        }
        if ((this.clientchannel == null && other.clientchannel != null) || (this.clientchannel != null && !this.clientchannel.equals(other.clientchannel))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.NewsClientsoftupdaterulePK[clientua=" + clientua + ", clientchannel=" + clientchannel + "]";
    }

}
